package com.sharedprint.system.merchant.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sharedprint.system.merchant.mapper.MerchantInfoMapper;
@Service
public class MerchantInfoServiceImpl implements MerchantInfoService {
@Autowired
    private MerchantInfoMapper merchantInfoMapper;
	@Override
	public int findCount(Map<String, Object> searchMap) {
		// TODO Auto-generated method stub
		return merchantInfoMapper.findCount(searchMap);
	}

	@Override
	public List<Map<String, Object>> findPageList(Map<String, Object> searchMap) {
		// TODO Auto-generated method stub
		return merchantInfoMapper.findPageList(searchMap);
	}

	@Override
	public int delete(int merchantId) {
		// TODO Auto-generated method stub
		return merchantInfoMapper.deleteByPrimaryKey(merchantId);
	}

}
